import nock from "nock";

nock("https://matej10qa.appwrite.org:443", { encodedQueryParams: true })
    .post("/v1/account/sessions/anonymous", {})
    .reply(
        201,
        [
            "1f8b0800000000000003758fcd4ec33010845f0545bd4123c771d23ab7828ac4811e50e09ed80bb59adad1daa98810ef8ed384fc2071b23db3fbcdf82b58291964411a53b6e13191256392269c42b209ee829540281cc89df3339450ba267c1da579146734c9080b39896f09c908f1c38d057c5ac0b8a42c2d8b9251e17df8ac15420f8aff82b67c3b826a34172501fd68a18d6ecfa6b133f9f5da7826ec84006b737302fdafb1efc2dba5fd02ef08f6385b54b53fa38487114b431685b4ab63ec8391d00f187b28cee3fd0dd02a33ec8a4a8176795b7776a54a2c7cdeaf3c11faf7403978f9e6119c388ecec48c4232aa7bfda1f482d02b8b06122e4ac054b07fdf63a1e55c78f6a1d580328d76d80eed1c4ed240c91b3cc1f51b0da24f0d32870d7cff001ba0cdfc37020000",
        ],
        [
            "Access-Control-Allow-Credentials",
            "true",
            "Access-Control-Allow-Headers",
            "Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-SDK-Name, X-SDK-Language, X-SDK-Platform, X-Appwrite-ID, Content-Range, Range, Cache-Control, Expires, Pragma",
            "Access-Control-Allow-Methods",
            "GET, POST, PUT, PATCH, DELETE",
            "Access-Control-Allow-Origin",
            "https://localhost",
            "Access-Control-Expose-Headers",
            "X-Fallback-Cookies",
            "Content-Encoding",
            "gzip",
            "Content-Length",
            "301",
            "Content-Type",
            "application/json; charset=UTF-8",
            "Date",
            "Fri, 16 Sep 2022 13:25:04 GMT",
            "Server",
            "Appwrite",
            "Set-Cookie",
            "a_session_6324555073b9706cb1f5_legacy=eyJpZCI6IjYzMjQ3OTMwZDlkMjQ2YmFiNDJjIiwic2VjcmV0IjoiMGI5ZjIyOGFkNGM2Mjk5MjU4Y2YwZWJiOGNjYTUyYjgwOTA4NTc0ZWMwMzczM2YzYzBlYWZkYTYyZjY4YmU3ZGRiZGY1Zjc4ZjEyZmQ3MzA1YzkwNjk4Yjc4NzM1MjVjYWQ3MTUzZjQ2ZDAyMTFjM2FjZTE1OGVjOTc0MGJjN2QyNjYxNjE3MjVmMzUxNTljM2FkZDdlYzEwYmRhOWU2ZDBmMjA4MmYwMjU1NTMzYzhlMmZkMGE3MWFiM2Y0OGU3ZjYyYWY4MmZkNmEyYjk2MjA0YTcwMTI3NzAzMDFkODgxMzcyYzZjOGY3MTFiNzZiYjgxZDNkOGYyM2FkZTcyMSJ9; expires=Sat, 16-Sep-2023 13:25:04 GMT; path=/; domain=.matej10qa.appwrite.org; secure; httponly",
            "Set-Cookie",
            "a_session_6324555073b9706cb1f5=eyJpZCI6IjYzMjQ3OTMwZDlkMjQ2YmFiNDJjIiwic2VjcmV0IjoiMGI5ZjIyOGFkNGM2Mjk5MjU4Y2YwZWJiOGNjYTUyYjgwOTA4NTc0ZWMwMzczM2YzYzBlYWZkYTYyZjY4YmU3ZGRiZGY1Zjc4ZjEyZmQ3MzA1YzkwNjk4Yjc4NzM1MjVjYWQ3MTUzZjQ2ZDAyMTFjM2FjZTE1OGVjOTc0MGJjN2QyNjYxNjE3MjVmMzUxNTljM2FkZDdlYzEwYmRhOWU2ZDBmMjA4MmYwMjU1NTMzYzhlMmZkMGE3MWFiM2Y0OGU3ZjYyYWY4MmZkNmEyYjk2MjA0YTcwMTI3NzAzMDFkODgxMzcyYzZjOGY3MTFiNzZiYjgxZDNkOGYyM2FkZTcyMSJ9; expires=Sat, 16-Sep-2023 13:25:04 GMT; path=/; domain=.matej10qa.appwrite.org; secure; httponly; samesite=None",
            "X-Content-Type-Options",
            "nosniff",
            "X-Debug-Fallback",
            "true",
            "X-Debug-Speed",
            "0.019235134124756",
            "X-Fallback-Cookies",
            '{"a_session_6324555073b9706cb1f5":"eyJpZCI6IjYzMjQ3OTMwZDlkMjQ2YmFiNDJjIiwic2VjcmV0IjoiMGI5ZjIyOGFkNGM2Mjk5MjU4Y2YwZWJiOGNjYTUyYjgwOTA4NTc0ZWMwMzczM2YzYzBlYWZkYTYyZjY4YmU3ZGRiZGY1Zjc4ZjEyZmQ3MzA1YzkwNjk4Yjc4NzM1MjVjYWQ3MTUzZjQ2ZDAyMTFjM2FjZTE1OGVjOTc0MGJjN2QyNjYxNjE3MjVmMzUxNTljM2FkZDdlYzEwYmRhOWU2ZDBmMjA4MmYwMjU1NTMzYzhlMmZkMGE3MWFiM2Y0OGU3ZjYyYWY4MmZkNmEyYjk2MjA0YTcwMTI3NzAzMDFkODgxMzcyYzZjOGY3MTFiNzZiYjgxZDNkOGYyM2FkZTcyMSJ9"}',
            "X-Ratelimit-Limit",
            "50",
            "X-Ratelimit-Remaining",
            "38",
            "X-Ratelimit-Reset",
            "1663336800",
            "Connection",
            "close",
        ],
    );

nock("https://matej10qa.appwrite.org:443", { encodedQueryParams: true })
    .delete(
        "/v1/databases/632455a0b8d017403ce9/collections/632455a55dc72e1aa016/documents/63245af4d15590ca1984",
        {},
    )
    .reply(204, "", [
        "Access-Control-Allow-Credentials",
        "true",
        "Access-Control-Allow-Headers",
        "Origin, Cookie, Set-Cookie, X-Requested-With, Content-Type, Access-Control-Allow-Origin, Access-Control-Request-Headers, Accept, X-Appwrite-Project, X-Appwrite-Key, X-Appwrite-Locale, X-Appwrite-Mode, X-Appwrite-JWT, X-Appwrite-Response-Format, X-SDK-Version, X-SDK-Name, X-SDK-Language, X-SDK-Platform, X-Appwrite-ID, Content-Range, Range, Cache-Control, Expires, Pragma",
        "Access-Control-Allow-Methods",
        "GET, POST, PUT, PATCH, DELETE",
        "Access-Control-Allow-Origin",
        "https://localhost",
        "Access-Control-Expose-Headers",
        "X-Fallback-Cookies",
        "Content-Type",
        "text/html",
        "Date",
        "Fri, 16 Sep 2022 13:25:05 GMT",
        "Server",
        "Appwrite",
        "X-Content-Type-Options",
        "nosniff",
        "X-Debug-Fallback",
        "true",
        "X-Debug-Speed",
        "0.01102089881897",
        "X-Ratelimit-Limit",
        "60",
        "X-Ratelimit-Remaining",
        "59",
        "X-Ratelimit-Reset",
        "1663334760",
        "Connection",
        "close",
    ]);
